//
//  SearchViewCell.m
//  LazyCat
//
//  Created by jike on 15/11/16.
//  Copyright (c) 2015年 zhanshu. All rights reserved.
//

#import "SearchViewCell.h"

@implementation SearchViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.lsLable = [[UILabel alloc] init];
        [self addSubview:self.lsLable];
        self.lineView = [[UIView alloc] init];
        [self addSubview:self.lineView];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.lsLable.frame = CGRectMake(10, (layoutAttributes.frame.size.height - 20) / 2, ScreenWidth - 10, 20);
    self.lineView.frame = CGRectMake(10, layoutAttributes.frame.size.height - 1, ScreenWidth - 10, 1);
    self.lineView.backgroundColor = [UIColor lightGrayColor];
    self.lineView.alpha = 0.2;
}






@end
